Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to using directly piboot instead of u-boot #86

Conversation

alfonsosanchezbeato
Copy link
Member

Use piboot directly instead of running u-boot as second stage
bootloader, now that is supported by snapd.

Opening as a draft, just as reference for the moment. We might maybe want this a separate branch in this repository (22-arm64-piboot?)

These other PRs would be needed:
canonical/snapd#11068
canonical/ubuntu-image#40
canonical/core-base#30
canonical/core-initrd#85

Use piboot directly instead of running u-boot as second stage
bootloader, now that is supported by snapd.
touch $(DESTDIR)/piboot.conf
cp -a configs/core/config.txt.$(ARCH) $(DESTDIR)/config.txt
sed -i 's/^kernel=.*/kernel=kernel.img/' $(DESTDIR)/config.txt
printf '\ninitramfs initrd.img followkernel\nos_prefix=\n' >> $(DESTDIR)/config.txt
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This appears to leave "os_prefix=" without a value. I assume that needs an update?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

config.txt will be modified in the snap prepare-image step with the right os_prefix - note that the value cannot be known before that as initially it points to the install system.

@xnox xnox marked this pull request as ready for review March 25, 2022 16:34
@xnox
Copy link
Contributor

xnox commented Mar 25, 2022

Given everything else has landed now, i guess this can be merged into regular branch now.

@alfonsosanchezbeato
Copy link
Member Author

Closing this in favor of #87.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants